package org.example.MapFunction;

import org.apache.flink.api.common.functions.MapFunction;
import org.apache.flink.training.exercises.common.datatypes.EnrichedRide;
import org.apache.flink.training.exercises.common.datatypes.TaxiRide;

/**
 * @Author hujf
 * @Date 2022/8/24 14:03
 * @Description TODO
 */
public class Enrichment implements MapFunction<TaxiRide,EnrichedRide> {

    @Override
    public EnrichedRide map(TaxiRide value) throws Exception {
        return new EnrichedRide(value);
    }
}
